package com.bgs.travelapp.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class RanNum {

    public static String createRanNum(){
        Random r = new Random();
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        String format = simpleDateFormat.format(date);
        int number = r.nextInt(9999);
        String code = format+number;
        return code;
    }

}
